package com.bjpowernode.boss.mvc.model.query;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 操作登录表单数据
 */
@Data
public class OperatorLoginQuery {

    @NotBlank(message = "用户名不能为空")
    @Size(min = 5 , max = 20 , message = "用户名长度在{min}到{max}之间")
    private String loginName;

    @NotBlank(message = "登录密码不能为空")
    @Size(min = 32 , max = 32 , message = "密码加密后为32位")
    private String loginPwd;

}
